home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2003 November / PCWK1103B.iso / DesignCAD 3D Max PLUS trial 30 / DATA1.CAB / Example_Files / Sample_Macros / Set View.d3m < prev    next >
Encoding:
Text File  |  2003-09-29  |  339 b   |  16 lines

  1. ' This simple macro sets the viewer's position at the center of the screen,
  2. ' then enters the Set View command, so objects drawn can't be "lost" in 3D space.
  3. '
  4. xav = (Sys(120) + Sys(122))/2
  5. yav = (Sys(121) + Sys(123))/2
  6. zav = (Sys(124) + Sys(125))/2
  7. >SetViewerPoints
  8. {
  9.     <Pointxyz [xav, yav, zav]
  10.     }
  11.  
  12. >SetView
  13. {
  14.     }
  15.  
  16.